org.eclipse.vtp.framework.common
Interface IBooleanObject

All Superinterfaces:
IDataObject

public interface IBooleanObject
extends IDataObject

Represents a dynamic true or false value.

Author:
Lonnie Pryor

Field Summary
static java.lang.String TYPE_NAME
          The name of the boolean type.
 
Method Summary
 java.lang.Boolean getValue()
          Returns the current value of this data object.
 boolean setValue(java.lang.Object value)
          Sets the value of this data object to the specified value.
 
Methods inherited from interface org.eclipse.vtp.framework.common.IDataObject
getField, getType, isEqualTo, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, isReadOnly, setField, toString
 

Field Detail

TYPE_NAME

static final java.lang.String TYPE_NAME
The name of the boolean type.

See Also:
Constant Field Values
Method Detail

getValue

java.lang.Boolean getValue()
Returns the current value of this data object.

Returns:
The current value of this data object.

setValue

boolean setValue(java.lang.Object value)
                 throws java.lang.IllegalStateException
Sets the value of this data object to the specified value.

This method will attempt to coerce the supplied value into a Java Boolean object.

Parameters:
value - The value to assign to this data object.
Returns:
False if the supplied value cannot be coerced into a Java Boolean.
Throws:
java.lang.IllegalStateException - If this object is read-only.